package tools

import (
	"fmt"
	"strconv"
)

func MustSliceStringToInt32(in []string) []int32 {
	result := make([]int32, len(in))
	for index, i := range in {
		num, err := strconv.Atoi(i)
		Assert(err == nil, "convert string to int32 failed")
		result[index] = int32(num)
	}
	return result
}

func ToString(input ...interface{}) string {
	return fmt.Sprint(input...)
}
